package src.class1;

import src.class1.Pet;

public class PetTester2 {
    public static void intro(Pet p){
        p.introduce();
    }

    public static void main(String[] args) {
        Pet[] a={
                new Pet("小黑","谢加利"),
                new class1.RobotPet("SIRI","张震"),
                new Pet("小白","张力"),
        };
        for(Pet s:a){
            intro(s);
            System.out.println();
        }
    }
}
